﻿/***********************************************************************
 * <copyright file="DepartmentDto.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Tuesday, October 22, 2013
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Runtime.Serialization;

namespace AOnlineService.DataTransferObjects.Dictionary 
{
    /// <summary>
    /// Department Data Transfer Object.
    /// 
    /// The purpose of the DepartmentTransferObject is to facilitate transport of 
    /// Department business data in a serializable format. Business data is kept in 
    /// publicly accessible auto properties. This class has no methods. 
    /// </summary>
    /// <remarks>
    /// Pattern: Data Transfer Objects.
    /// 
    /// Data Transfer Objects are objects that transfer data between processes, but without behavior.
    /// </remarks>
    [DataContract(Name = "Department", Namespace = "http://www.yourcompany.com/types/")]
    public class DepartmentTestDto  
    {
        /// <summary>
        /// Gets or sets the department identifier.
        /// </summary>
        /// <value>
        /// The department identifier.
        /// </value>
        [DataMember]
        public int DepartmentId { get; set; }  
        /// <summary>
        /// Gets or sets the parent identifier.
        /// </summary>
        /// <value>
        /// The parent identifier.
        /// </value>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// Gets or sets the code.
        /// </summary>
        /// <value>
        /// The department code.
        /// </value>
        [DataMember]
        public int ParentId { get; set; }
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The department name.
        /// </value>
        [DataMember]
        public int Grade { get; set; }
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The department name.
        /// </value>
        [DataMember]
        public bool HasParent { get; set; }   
    

    }
}
